//
//  MessageTableViewCell.m
//  RoadMaintain
//
//  Created by 岳学坤 on 2017/2/28.
//  Copyright © 2017年 岳学坤. All rights reserved.
//

#import "MessageTableViewCell.h"
@interface MessageTableViewCell ()
@property (nonatomic,strong)UILabel *titleLab;

@end
@implementation MessageTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.contentView.backgroundColor = [PublicMethod colorWithHexString:@"#228dd9" andAlpha:1];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self setUI];
    }
    return self;
}
- (void)setUI{
    self.titleLab = [[UILabel alloc]init];
    self.titleLab.text = @"·  关于十三五规划的相关通知";
    self.titleLab.textColor = Bai_Color;
    self.titleLab.font = [UIFont systemFontOfSize:10*ZitiRate];
    [self.contentView addSubview:self.titleLab];
    [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(0*WidthRate);
        make.bottom.mas_equalTo(0*WidthRate);
        make.left.mas_equalTo(10*WidthRate);
        make.right.mas_equalTo(-10*WidthRate);
    }];
    
    self.line = [[UIView alloc]init];
    self.line.backgroundColor = Bai_Color;
    [self.contentView addSubview:self.line];
    [self.line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(29*HeightRate);
        make.height.mas_equalTo(0.5);
        make.left.mas_equalTo(15*WidthRate);
        make.right.mas_equalTo(-15*WidthRate);
    }];
}
@end
